#include <iostream>
using namespace std;

int a=300,b=400,c=500;

void funa(int c)
{
    static int a=5;
    a+=c;
    cout<<a<<' '<<c<<endl;
}

void funb(int a)
{
    a=b;
    cout<<a<<endl;
    ::c-=100;
}

void func()
{
    int c=0;
    cout<<a<<' '<<b<<' '<<c<<endl;
}

int main()
{
    funa(a);
    funb(b);
    func();

    return 0;
}